libxl: fail to parse disk vpath if a disk+part number needed but unavailable
authorIan Campbell <ian.campbell@citrix.com>
Wed, 28 Sep 2011 15:31:11 +0000 (16:31 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 28 Sep 2011 15:31:11 +0000 (16:31 +0100)
commit8ca0ed2cde1176af5adc1c49dc4c14c480f41cbf
tree6ce6c2ff0e458292467260030aeae1baf31a4d8d
parent062ef262f9dfea877b6e3551aadff9db0d3d0f13
libxl: fail to parse disk vpath if a disk+part number needed but unavailable

libxl__device_disk_dev_number() can parse a virtpath which is an encoded
unsigned long but does not set *pdisk or *ppartition in that case.

Ideally we would parse the number but for now simply fail to prevent cascading
failures.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_device.c